package com.qf.smartplatform.mapper;

import com.qf.smartplatform.pojo.SysMenu;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

/*** @author Tgb
 * @version V1.0
 * @Project smartplatform
 * @Package com.qf.smartplatform.mapper
 * @Description:
 * @Date 2022/9/12 17:06
 */
public interface MenuMapper {

    void addMenu(SysMenu sysMenu);
    @Select("select * from sys_menu")
    List<SysMenu> findAll();
    @Delete("delete from sys_menu where menu_id=#{menuId}")
    int deleteById(Long menuId);
    int updateMenu(SysMenu sysMenu);
}
